
package pms.dto;

import pms.om.Reservierung;
/**
 * Data transfer object
 * used to represent a reservation.
 * @author KRS DEV Team (krsdevteam@PMSWIbb2011SS.de)
 */
public class ResEventKundeDTO {
	private int id;
	private String datum;
	private String uhrzeit;
	private int res_plaetze_loge;
	private int res_plaetze_reg;
	private String event_name;
	private String kunde;

	public ResEventKundeDTO(Reservierung r) {
		//SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy hh:mm");
		id = r.getId();
		setKunde(r.getKunde().getName());
		res_plaetze_loge = r.getRes_plaetze_loge();
		res_plaetze_reg = r.getRes_plaetze_reg();
		//setDatum(sdf.format(r.getDatum()));
		setDatum(r.getDatum());
		setEvent_name(r.getEvent().getName());
	}

	public void setDatum(String datum) {
		this.datum = datum;
	}

	public String getDatum() {
		return datum;
	}

	public void setUhrzeit(String uhrzeit) {
		this.uhrzeit = uhrzeit;
	}

	public String getUhrzeit() {
		return uhrzeit;
	}

	public void setRes_plaetze_loge(int res_plaetze_loge) {
		this.res_plaetze_loge = res_plaetze_loge;
	}

	public int getRes_plaetze_loge() {
		return res_plaetze_loge;
	}

	public void setRes_plaetze_reg(int res_plaetze_reg) {
		this.res_plaetze_reg = res_plaetze_reg;
	}

	public int getRes_plaetze_reg() {
		return res_plaetze_reg;
	}

	public void setEvent_name(String event_name) {
		this.event_name = event_name;
	}

	public String getEvent_name() {
		return event_name;
	}

	public void setKunde(String kunde) {
		this.kunde = kunde;
	}

	public String getKunde() {
		return kunde;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}
	
	
}